package com.anhry.app.safety.manage.djpd.service;

import com.anhry.app.safety.manage.djpd.bean.TbDjpdApplyWs1;
import com.anhry.app.safety.manage.djpd.bean.TbDjpdApplyWs2;
import com.anhry.app.safety.manage.djpd.bean.TbDjpdHyCheck;
import com.anhry.app.safety.manage.djpd.bean.TbDjpdType;


/**
 * @date:2012-11-1
 * @remark:
 * @author:dongbin
 */
public interface DjpdService {
	
	/**
	 * 根据类型名称查询该类型id
	 * @param str
	 * @return
	 * @throws Exception
	 */
	public TbDjpdType getBzhType(String str)throws Exception;
	
	/**
	 * 根据评级记录取得该记录对应的申请表
	 * @param appId
	 * @return
	 * @throws Exception
	 */
	public TbDjpdApplyWs1 getDjpdWs1(String appId)throws Exception;
	
	/**
	 * 根据评级记录取得该记录对应的自评/评估报告
	 * @param appId
	 * @return
	 * @throws Exception
	 */
	public TbDjpdApplyWs2 getDjpdWs2(String appId)throws Exception;
	
	/**
	 * 根据行业复核Id取得复核结果
	 * @param appId
	 * @return
	 * @throws Exception
	 */
	public TbDjpdHyCheck getHyCheck(String appId)throws Exception;
	
	/**
	 *  删除企业评级记录对应的自评/评估报告
	 * @param applyId
	 * @return
	 * @throws Exception
	 */
	public int deleteApplyWs2(String applyId) throws Exception;
	/**
	 * 删除企业评级记录对应的申请表
	 * @param applyId
	 * @return
	 * @throws Exception
	 */
	public int deleteApplyWs1(String applyId) throws Exception;
	/**
	 * 删除企业评级记录细项
	 * @param corpId
	 * @return
	 * @throws Exception
	 */
	public int deleteApplyItem(String corpId) throws Exception;
	/**
	 * 删除企业评级记录项 
	 * @param corpId
	 * @return
	 * @throws Exception
	 */
	public int deleteApply(String corpId) throws Exception;

}
